[#import "/framework/JGP.htm"  as JGP]
<!--
项目   parent
作者   LOUFEI [Gavin]
时间   2018/4/13
-->
[@JGP.head "Title"/]
[@JGP.body]
    <jgp-div slot="1-1" _row="['30','70','*']" _runit="px">
        <div slot="1-1">
            <jgp-btn _fn="scanner">扫描平台资源</jgp-btn>
        </div>
        <div slot="2-1">
            <jgp-query _target="resGrid" _action="/security/admin/adminApiController/queryReses">
                <jgp-form-group _title="资源搜索">
                    <jgp-text _col="3" _name="action" _label="标识符" _placeholder="权限标识符"></jgp-text>
                    <jgp-text _col="3" _name="remark" _label="资源" _placeholder="资源描述"></jgp-text>
                    <jgp-drop _col="3" _name="powerType" _label="资源类型" _readonly="true"
                               _list="[{'label':'空','value':''},
                               {'label':'访问控制','value':'PAGE'},
                               {'label':'异步操作','value':'AJAX'},
                               {'label':'服务','value':'SERVICE'}]"></jgp-drop>
                </jgp-form-group>
            </jgp-query>
        </div>
        <div slot="3-1">
            <jgp-grid _id="resGrid" _check="false"></jgp-grid>
        </div>
    </jgp-div>
[/@JGP.body]

[@JGP.foot]
    <script>

        function scanner() {
            JGP.$get('/security/admin/adminApiController/scanAndGenerate', {}, function (result) {
                console.log(result);
            })
        }
    </script>
[/@JGP.foot]